var i, n;
if (global.inventory == true)
{
    draw_set_color(c_black);
    draw_set_alpha(0.5);
    draw_rectangle(view_xview[0],view_yview[0],view_xview[0]+view_wview[0],view_yview[0]+view_hview[0],false);
    draw_set_alpha(1);
    //Inventory
    textbox_draw_canvas(view_xview[0]+8,view_yview[0]+24,16+(inventory_itemsrow*inventory_cellsize),16+(inventory_rows*inventory_cellsize));
    textbox_draw_canvas(view_xview[0]+8,view_yview[0]+180,304,40);
    textbox_draw_text(view_xview[0]+16,view_yview[0]+192,inventory_text[0],c_white,0);
    for (i=0; i < global.inventory_current_maxitems; i++)
    {
        inventory_draw_item(i,16,32);
    }
    //Status Screen
    textbox_draw_canvas(view_xview[0]+156,view_yview[0]+24,156,16+(ds_list_size(global.team))*36);
    for (n=0; n<(ds_list_size(global.team)); n+=1)
    {
        var color;
        if (n == global.team_member_current)
        {
            color = c_white;
            draw_set_color(c_menured1);
            draw_rectangle(view_xview[0] + 162, view_yview[0] + 32 + (36 * n), view_xview[0] + 306, view_yview[0] + 64 + (n * 36), false);
        }
        else
        {
            color = c_menuyellow1;
        }
        draw_sprite((ds_list_find_value(global.team,n)).character_sprite_stand[0],0,view_xview[0]+180,view_yview[0]+32+(36*n));
        textbox_draw_text(view_xview[0]+196,view_yview[0]+46+(36 * n),(ds_list_find_value(global.team,n)).character_name,color,0);
        textbox_draw_text(view_xview[0]+196,view_yview[0]+56+(36 * n),string("HP: ")+string((ds_list_find_value(global.team,n)).character_hp[0])+string("/")+string((ds_list_find_value(global.team,n)).character_hp[1]),color,1);
    }
    //Money and such
    inventory_draw_currency(view_xview[0]+156,24 + ((ds_list_size(global.team) * 36) + 16) + 4,string("$"));
}
